/**
 * 
 *
 * 
 * 
 */
package com.east196.xfast.core.dict;

import com.east196.xfast.aop.AopContext;
import com.east196.xfast.aop.MetaObjectIntercept;
import com.east196.xfast.common.utils.xx;
import com.east196.xfast.model.MetaObject;

public class DictIntercept extends MetaObjectIntercept {

	@Override
	public void queryBefore(AopContext ac) throws Exception {
		String objectCode = ac.ctrl.getPara("query_v_object_code");
		if (!xx.isEmpty(objectCode)) {
			MetaObject o = MetaObject.dao.getByCode(objectCode);
			ac.condition = " and object = ?";
			ac.params.add(o.getTable());
		}

		super.queryBefore(ac);
	}

	
}
